package com.ruoyi.system.domain.parm;

import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 商家价格配置对象 sys_preferential
 * 
 * @author ruoyi
 * @date 2024-03-31
 */
public class SysPreferentialParm
{
    private static final long serialVersionUID = 1L;

    /** id */
    @ApiModelProperty(value = "id",example = "")
    private String id;

    /** 优惠名称 */
    @ApiModelProperty(value = "优惠名称",example = "",required = true)
    @NotEmpty
    private String preferentialName;

    /** 小时范围 大于等于 */
    @ApiModelProperty(value = "小时范围 大于等于",example = "",required = true)
    @NotNull
    private Long greaterThan;

    /** 小时范围 小于等于 */
    @ApiModelProperty(value = "小时范围 小于等于",example = "",required = true)
    @NotNull
    private Long lessThan;

    /** 价格  单位小时 */
    @ApiModelProperty(value = "价格  单位小时",example = "",required = true)
    @NotNull
    private BigDecimal price;

    /** 商家id */
    @ApiModelProperty(value = "商家id")
    private String businessId;

    /** 停车场id */
    @ApiModelProperty(value = "停车场id",example = "",required = true)
    @NotNull
    private String parkingId;

    public String getParkingSpacesId() {
        return parkingSpacesId;
    }

    public void setParkingSpacesId(String parkingSpacesId) {
        this.parkingSpacesId = parkingSpacesId;
    }

    /** 停车场id */
    @ApiModelProperty(value = "停车位id",example = "",required = true)
    @NotNull
    private String parkingSpacesId;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setPreferentialName(String preferentialName) 
    {
        this.preferentialName = preferentialName;
    }

    public String getPreferentialName() 
    {
        return preferentialName;
    }
    public void setGreaterThan(Long greaterThan) 
    {
        this.greaterThan = greaterThan;
    }

    public Long getGreaterThan() 
    {
        return greaterThan;
    }
    public void setLessThan(Long lessThan) 
    {
        this.lessThan = lessThan;
    }

    public Long getLessThan() 
    {
        return lessThan;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setBusinessId(String businessId)
    {
        this.businessId = businessId;
    }

    public String getBusinessId()
    {
        return businessId;
    }
    public void setParkingId(String parkingId)
    {
        this.parkingId = parkingId;
    }

    public String getParkingId()
    {
        return parkingId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("preferentialName", getPreferentialName())
            .append("greaterThan", getGreaterThan())
            .append("lessThan", getLessThan())
            .append("price", getPrice())
            .append("businessId", getBusinessId())
            .append("parkingId", getParkingId())
            .toString();
    }
}
